//---------------------------------------------------------------------------

#ifndef SimWriteMotorH
#define SimWriteMotorH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#define TEMPBUF_SIZE 1024
//---------------------------------------------------------------------------
class TFormSimWriteMotor : public TForm
{
__published:	// IDE-managed Components
	TMemo *MemoReceive;
	TCheckBox *CheckBoxShow;
	TMemo *MemoIntervalTime;
	TCheckBox *CheckBoxShowTime;
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall MemoReceiveDblClick(TObject *Sender);
	void __fastcall MemoIntervalTimeDblClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TFormSimWriteMotor(TComponent* Owner);
	bool WriteMotor_DataCheck(unsigned char* buf, int length_buf);
	void UpdateWriteMotorDataInfo(unsigned char* MotorData, int MotorNum);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormSimWriteMotor *FormSimWriteMotor;
//---------------------------------------------------------------------------
#endif
